import 'package:json_annotation/json_annotation.dart';
import 'package:yt_devops/model/device_obj/data_type_model.dart';

part 'output_data_model.g.dart';

@JsonSerializable()
class OutputDataModel {
  String id;

  String name;

  DataTypeModel dataType;

  OutputDataModel(
      {required this.id, required this.name, required this.dataType});

  factory OutputDataModel.fromJson(Map<String, dynamic> json) =>
      _$OutputDataModelFromJson(json);

  Map<String, dynamic> toJson() => _$OutputDataModelToJson(this);
}
